package com.hgkj.cloud.base.service.impl;

import com.hgkj.cloud.base.dao.TenantDeviceInfoMapper;
import com.hgkj.cloud.base.domain.TenantDeviceInfo;
import com.hgkj.cloud.base.service.TenantDeviceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TenantDeviceInfoServiceImpl implements TenantDeviceInfoService {

    @Autowired
    private TenantDeviceInfoMapper tenantDeviceInfoMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return tenantDeviceInfoMapper.deleteDeviceInfo(id);
    }

    @Override
    public int insert(TenantDeviceInfo record) {
        return tenantDeviceInfoMapper.insert(record);
    }

    @Override
    public int insertSelective(TenantDeviceInfo record) {
        return tenantDeviceInfoMapper.insertSelective(record);
    }

    @Override
    public TenantDeviceInfo selectByPrimaryKey(Long id) {
        return tenantDeviceInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TenantDeviceInfo record) {
        return tenantDeviceInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TenantDeviceInfo record) {
        return tenantDeviceInfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public TenantDeviceInfo getDeviceInfoById(Long id) {
        return tenantDeviceInfoMapper.getDeviceInfoById(id);
    }

    @Override
    public TenantDeviceInfo getDeviceInfoByVcode(String vcode) {
        return tenantDeviceInfoMapper.getDeviceInfoByVcode(vcode);
    }

    @Override
    public Map<String, Object> getDeviceInfoMapByVcode(String vcode) {
        return tenantDeviceInfoMapper.getDeviceInfoMapByVcode(vcode);
    }

    @Override
    public List<TenantDeviceInfo> listDeviceInfos(Map<String, Object> map) {
        return tenantDeviceInfoMapper.listDeviceInfos(map);
    }

    @Override
    public List<TenantDeviceInfo> listUserDeviceInfos(Map<String, Object> map) {
        return tenantDeviceInfoMapper.listUserDeviceInfos(map);
    }

    @Override
    public List<TenantDeviceInfo> listDeviceInfosGroupbyDev_id(Map<String, Object> map) {
        return tenantDeviceInfoMapper.listDeviceInfosGroupbyDev_id(map);
    }

    @Override
    public List<TenantDeviceInfo> listDeviceInfosBackend(Long tenant_id) {
        return tenantDeviceInfoMapper.listDeviceInfosBackend(tenant_id);
    }

    @Override
    public List<TenantDeviceInfo> listTenantDeviceInfos(Map<String, Object> map) {
        return tenantDeviceInfoMapper.listTenantDeviceInfos(map);
    }

    @Override
    public int countTenantDeviceInfos(Map<String, Object> map) {
        return tenantDeviceInfoMapper.countTenantDeviceInfos(map);
    }

    @Override
    public int updateDeviceInfo(TenantDeviceInfo info) {
        return tenantDeviceInfoMapper.updateDeviceInfo(info);
    }

    @Override
    public int deleteDeviceInfo(Long id) {
        return tenantDeviceInfoMapper.deleteDeviceInfo(id);
    }

    @Override
    public List<Map<String, Object>> listAllDeviceData(Map<String, Object> map) {
        return tenantDeviceInfoMapper.listAllDeviceData(map);
    }

    @Override
    public List<Map<String, Object>> listAllTenantData(Map<String, Object> map) {
        return tenantDeviceInfoMapper.listAllTenantData(map);
    }

    @Override
    public List<TenantDeviceInfo> queryDeviceInfos(Map<String, Object> map) {
        return tenantDeviceInfoMapper.queryDeviceInfos(map);
    }

    @Override
    public int queryDeviceInfosCount(Map<String, Object> map) {
        return tenantDeviceInfoMapper.queryDeviceInfosCount(map);
    }

    @Override
    public void updateDeviceInfoOwner(Map<String, Object> map) {
        tenantDeviceInfoMapper.updateDeviceInfoOwner(map);
    }

    @Override
    public Map<String, Object> statDevState(Map<String, Object> map) {
        return tenantDeviceInfoMapper.statDevState(map);
    }

    @Override
    public List<Map<String, Object>> getDeviceListByDevVcode(String devVcode) {
        return tenantDeviceInfoMapper.getDeviceListByDevVcode(devVcode);
    }

    @Override
    public Map<String, Object> getDevicesFlagMap(Map<String, Object> map) {
        return tenantDeviceInfoMapper.getDevicesFlagMap(map);
    }

    @Override
    public List<Map<String, Object>> getSubDeviceList(Map<String, Object> map) {
        return tenantDeviceInfoMapper.getSubDeviceList(map);
    }

    @Override
    public TenantDeviceInfo getLastGroupDeviceInfo(Map<String, Object> map) {
        return tenantDeviceInfoMapper.getLastGroupDeviceInfo(map);
    }

    @Override
    public List<Map<String, Object>> getGroupOnlineDevice(Map<String, Object> map) {
        return tenantDeviceInfoMapper.getGroupOnlineDevice(map);
    }

    @Override
    public List<Map<String, Object>> getNotGroupDeviceList(Map<String, Object> map) {
        return tenantDeviceInfoMapper.getNotGroupDeviceList(map);
    }
}
